package com.bookrecomm.crawler.entity;

import lombok.Data;
import java.util.Date;
import java.util.List;

/**
 * 图书分类实体类
 */
@Data
public class Category {
    private Long id;
    private String name;
    private String description;
    private String icon;
    private Integer weight;
    private Long parentId;
    private Integer level;
    private Integer status;
    private Date createdAt;
    private Date updatedAt;
    
    // 非数据库字段，用于存储层级关系
    private List<Category> children;
}
